/*
 * 
 * 
 * 
 */
package com.hboxs.asl.entity;

import javax.persistence.*;
import java.math.BigDecimal;

/**
 * Entity - 直播礼物订单
 */
@Entity
@Table(name = "xx_live_gift_trade")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "xx_live_gift_trade_sequence")
public class LiveGiftTrade extends BaseEntity {

    private static final long serialVersionUID = -7907808222444149722L;

    /**
     * 礼物
     */
    private LiveGift liveGift;

    /**
     * 交易金币
     */
    private BigDecimal coin;

    /**
     * 礼物名称
     */
    private String giftName;

    /**
     * 用户
     */
    private Member member;

    /**
     * 主播
     */
    private Member anchor;

    /**
     * uuid
     */
    private String uuid;

    public LiveGiftTrade() {
        super();
    }

    public LiveGiftTrade(String uuid , LiveGift liveGift, BigDecimal coin, String giftName, Member member, Member anchor) {
        this.uuid = uuid ;
        this.liveGift = liveGift;
        this.coin = coin;
        this.giftName = giftName;
        this.member = member;
        this.anchor = anchor;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    public LiveGift getLiveGift() {
        return liveGift;
    }

    public void setLiveGift(LiveGift liveGift) {
        this.liveGift = liveGift;
    }

    public BigDecimal getCoin() {
        return coin;
    }

    public void setCoin(BigDecimal coin) {
        this.coin = coin;
    }

    public String getGiftName() {
        return giftName;
    }

    public void setGiftName(String giftName) {
        this.giftName = giftName;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    public Member getMember() {
        return member;
    }

    public void setMember(Member member) {
        this.member = member;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    public Member getAnchor() {
        return anchor;
    }

    public void setAnchor(Member anchor) {
        this.anchor = anchor;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }
}